<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="a">

</div>
  <script>
    var arr = new Array(100);
    arr.fill({
      id: '123',
      price:'1233',
      name: '好滋好味鸡蛋仔',
      shop: '王小虎夫妻店',
      state:'支付超时'
    },0,20)
    arr.fill({
      id: '456',
      price:'1233',
      name: '好滋好味鸡蛋仔',
      shop: '王小虎夫妻店',
      state:'支付超时'
    },20,40)
    arr.fill({
      id: '789',
      price:'1233',
      name: '好滋好味鸡蛋仔',
      shop: '王小虎夫妻店',
      state:'支付超时'
    },40,60)
    arr.fill({
      id: '1234',
      price:'1233',
      name: '好滋好味鸡蛋仔',
      shop: '王小虎夫妻店',
      state:'支付超时'
    },60,80)
    arr.fill({
      id: '21421',
      price:'1233',
      name: '好滋好味鸡蛋仔',
      shop: '王小虎夫妻店',
      state:'支付超时'
    },80,100)
    document.getElementsByClassName('a')[0].innerHTML = JSON.stringify(arr)
  </script>
</body>
</html>
